'''
使用Anaconda或者pip安装一下pyinstaller模块，然后执行：
	pyinstaller -F  <脚本.py>
就可以将Python程序编译为exe
'''
import random

class FairRandomPicker:
    def __init__(self, names):
        self.names = names
        self.index = 0
        self.shuffle_names()
    
    def shuffle_names(self):
        random.shuffle(self.names)
    
    def pick_next(self):
        if self.index >= len(self.names):
            self.index = 0
            self.shuffle_names()
        next_name = self.names[self.index]
        self.index += 1
        return next_name

# 示例用法
names = ["董天祥", "张正霖", "李盈莹", "张小寒", "卢祎桃", "朱仁亮", "伍烨", "王硕", "闫姿辰", "刘然", "郭朋浩", "芦显骅", "林宝鸿", "蔡子乐", "许静茹", "杜庆玺", "陈俊桦", "朱逸超", "李季鸿", "吴佳一", "朱芳萱", "孙阳", "赵怡帆", "杨福鑫", "张继然", "方政", "傅晨旖", "颜千皓", "陈禹作", "盛伟豪", "吴立邦", "王梓懿"]
picker = FairRandomPicker(names)

# 依次选择名字
for i in range(len(names)):
    print("序号：{}.  {}".format(i,picker.pick_next()))